home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Cursor Blink.xpl < prev    next >
Text File  |  1999-06-11  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\General\Effects"
  5. "NAME"="Cursor Blink Rate"
  6. "VERSION"="1.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Blink Rate"
  9. "DESCRIPTION 1"="The cursor in a text field has a specified blink rate. The default value is "500"."
  10. "DESCRIPTION 2"="To have the fastest blink rate, enter "1"."
  11. "DESCRIPTION 3"="If it shouldn't blink, enter "60000"."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16. 'Declaration of some constants
  17. sP="HKCU\Control Panel\Desktop\"
  18. sV1="CursorBlinkRate"
  19.  
  20. 'Called when the Plugin is started
  21. Sub Plugin_Initialize
  22.  i=RegReadValue(sp & sv1)
  23.  SetUIElement 1,i 
  24. End Sub
  25.  
  26. 'Called when the Plugin should validate the Data the user has entered
  27. Sub Plugin_CheckData(ElementIndex)
  28.  i=GetUIElement(1)
  29.  
  30.  if IsNumeric(i) then
  31.   if i<1 or i>60000 then
  32.    Call DataInvalid("Please enter a value between 1 and 60000!")
  33.   end if
  34.  else
  35.   Call DataInvalid("Please enter a value between 1 and 60000!")
  36.  end if
  37. End Sub
  38.  
  39. 'Called when the Plugin should apply the changes
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  i=GetUIElement(1)
  42.  Call RegWriteValue(sp & sv1,i,1)
  43.  
  44.  Call Restart
  45. End Sub
  46.  
  47. 'Called when the Plugin is about to be removed from memory
  48. Sub Plugin_Terminate
  49. End Sub
  50.